import Cookies from 'js-cookie'

const TokenKey = 'login'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}

export function setTeam(v) {
  return Cookies.set('js', v)
}

export function getTeam() {
  return Cookies.get('jl')
}

export function removeTeam() {
  return Cookies.remove('jl')
}

export function getUser() {
  return Cookies.get('n')
}

export function removeUser() {
  return Cookies.remove('n')
}

export function setUser(v) {
  return Cookies.set('n', v)
}
